package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;

import java.util.List;

public interface MenuService {
    PageResult pageQuery(QueryPageBean queryPageBean);//分页查询

    void add(Menu menu);//添加菜单

    Menu findById(Integer id);//根据id查询

    void edit(Menu menu);//编辑菜单

    List<Menu> findAll();//查询所有

    void delete(Integer id);//根据id删除菜单
}
